package cn.cheegon.blog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 博客标签表
 * </p>
 *
 * @author cheegon
 * @since 2024-06-26
 */
@Getter
@Setter
@TableName("cms_blog_tags")
@Tag(name = "CmsBlogTags对象", description = "博客标签表")
public class CmsBlogTags implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "博客id")
    @TableField("blog_id")
    private Long blogId;

    @Schema(description = "标签id")
    @TableField("tag_id")
    private Long tagId;

    public CmsBlogTags() {
    }

    public CmsBlogTags(Long blogId, Long tagId) {
        this.blogId = blogId;
        this.tagId = tagId;
    }
}
